import { defineStore } from "pinia";

export const taskStore = defineStore({
  id: 'task',
  state: () => {
    return {
      cityValue: localStorage.getItem('city') || '北京',
      cityList: [],
      bannerList: [],
      positionList:[]
    }
  },
  actions: {
    setCityList(data: Array) {
      this.cityList = data
    },
    setCityValue(value: String) {
      this.cityValue = value
    },
    setBannerList(data: Array) {
      this.bannerList = data
    },
    setPositionList(data:any){
      this.positionList=data
    }
  }
})